package com.kube.gateway.core.router.domain.dto;

import java.util.StringJoiner;

public class PredicateDto {
    private String type;
    private String expression;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String build() {
        StringJoiner stringJoiner = new StringJoiner("=", "-", "");
        return stringJoiner.add(type).add(expression).toString();
    }
}
